<!DOCTYPE html>
<html lang="en">
<head>
    <include file="Common/top"/>
    <include file="Common/import_plugin"/>
    <style>
        .layui-table tr td{
            font-size: 12px;
        }
    </style>
</head>
<body>
<include file="Common/nav_menu"/>

<div class="layui-btn-group">
    <a href="{:U('add')}" class="layui-btn layui-btn-sm">增加</a>
</div>

<table class="layui-table">
    <tr>
        <td width="12">ID</td>
        <td>名称</td>
        <td>票型</td>
        <td>库存</td>
        <td>单价</td>
        <td>销售时间</td>
        <td width="24">上架</td>
        <td width="36">实名制</td>
        <td>操作</td>
    </tr>
    <volist name="list" id="vo">
        <tr>
            <td>{$vo.id}</td>
            <td>{$vo.name}</td>
            <td>{$vo.sn}</td>
            <td>{$vo.stock}</td>
            <td>{$vo.price}</td>
            <td><span style="color: green">{:date('Y-m-d H:i:s',$vo['starttime'])}</span> 至 <span style="color: red">{:date('Y-m-d H:i:s',$vo['overtime'])}</span></td>
            <td class="text-center">{:getStatus($vo['status'])}</td>
            <td class="text-center">{:getStatus($vo['is_real'])}</td>
            <td>
                <a class="layui-btn layui-btn-danger layui-btn-xs" href="{:U('delOne',array('id'=>$vo['id']))}">删除</a>
                <a class="layui-btn layui-btn-xs" href="{:U('editOne',array('id'=>$vo['id']))}">修改</a>
            </td>
        </tr>
    </volist>
</table>
<div class="page">
    {$page}
</div>
</body>
</html>